<?php $page_title = 'ChaChaConga - My Q and A'; $page = 'QA';
include 'includes/header.php'; ?>

<div id="ask"><input class="question-field" id="question-field" /></div>
	<!-- asked | answered | favorite -->
    <div id="feed-filter-bar">
        <a href="my-q-and-a.php?tab=asked"><?php if($_GET['tab'] == 'asked') echo'<img src="images/tab-asked-on.jpg" />'; else echo '<img src="images/tab-asked-off.jpg" />'; ?></a><a href="my-q-and-a.php?tab=answered"><?php if($_GET['tab'] == 'answered') echo '<img src="images/tab-answered-on.jpg" />'; else echo '<img src="images/tab-answered-off.jpg" />'; ?></a><a href="my-q-and-a.php?tab=favorite"><?php if($_GET['tab'] == 'favorite') echo '<img src="images/tab-favorite-on.jpg" />'; else echo '<img src="images/tab-favorite-off.jpg" />'; ?></a>
        </div>
        
    <?php if($_GET['tab'] == 'asked') {
    
    echo '<div id="question-feed">
        <div class="question">
            <div class="heart"><img src="images/heart-off.gif" border="0" /></div>
            <p class="question-text">Q: Where can I get quail eggs?</p>
            <p class="question-info-line">Asked <strong>April 10, 2011</strong></p>
        </div>
        <div class="question">
            <div class="heart"><img src="images/heart-off.gif" border="0" /></div>
            <p class="question-text">Q: Is Napolese busy tonight?</p>
            <p class="question-info-line">Asked <strong>April 5, 2011</strong></p>
        </div>
        <div class="question">
            <div class="heart"><img src="images/heart-off.gif" border="0" /></div>
            <p class="question-text">Q: What bar is NOT showing the Butler game tonight?</p>
            <p class="question-info-line">Asked <strong>April 2, 2011</strong></p>
        </div>
    </div>';
    
    }
    
    if($_GET['tab'] == 'answered') {
    
    echo '<div id="question-feed">
        <div class="question">
            <div class="heart"><img src="images/heart-off.gif" border="0" /></div>
            <p class="question-text">Q: Where\'s the best place that serves steak brazilian style?</p>
            <p class="question-info-line">Asked <strong>April 5, 2011</strong> by <strong>cooliomagic</strong></p>
        </div>
        <div class="question">
            <div class="heart"><img src="images/heart-off.gif" border="0" /></div>
            <p class="question-text">Q: Should I go to Bazbeaux or Hot Box?</p>
            <p class="question-info-line">Asked <strong>March 31, 2011</strong> by <strong>prettyjenny</strong></p>
        </div>
        <div class="question">
            <div class="heart"><img src="images/heart-off.gif" border="0" /></div>
            <p class="question-text">Q: Is the new Indonesian restaurant open?</p>
            <p class="question-info-line">Asked <strong>March 22, 2011</strong> by <strong>pinethor</strong></p>
        </div>
    </div>';
    
    }
  
         if($_GET['tab'] == 'favorite') {
    
    echo '<div id="question-feed">
        <div class="question">
            <div class="heart"><img src="images/heart-on.gif" border="0" />';
            // if($_SESSION['heart'] == 1) echo '<a href="my-q-and-a.php?tab=favorite&heart=0"><img src="images/heart-on.gif" border="0" /></a>';
                   // else echo'<a href="my-q-and-a.php?tab=favorite&heart=1"><img src="images/heart-off.gif" border="0" /></a>';
            echo '</div><p class="question-text">Q: Where and when is the Love\'s Lost Letters art event?</p>
            <p class="question-info-line">Asked <strong>10 SECONDS AGO</strong> by <strong>saraheart</strong></p>
        </div>
    </div>';
    
    }
    
include 'includes/footer.php'; ?>